package cap5.ex2;

import javax.swing.JOptionPane;

public class AppTriangulo {
	public static void main(String args[]){
		Triangulo tri = new Triangulo();
		
		tri.base = Double.parseDouble(JOptionPane.showInputDialog("Digite a base do triangulo: "));
		tri.altura = Double.parseDouble(JOptionPane.showInputDialog("Digite a altura do triangulo: "));
		
		System.out.println(tri);
		System.out.println(tri.dadosTriangulo());
	}
}
